﻿namespace EyeOpen.IO
{
	using System.IO;

	public static class DirectoryInfoExtensions
	{
		public static FileInfo Search(this DirectoryInfo directory, string fileName, ILogger logger)
		{
			return
				new DirectorySearch()
					.Search(new DirectoryInfoWrapper(directory), fileName, logger);
		}
	}
}